package apis

import (
	"github.com/gin-gonic/gin"
	"mini-gde/pkg"
	"mini-gde/service"
	"net/http"
)

func ListPods(c *gin.Context) {
	pods := service.ListPods()
	c.JSON(http.StatusOK, gin.H{
		"code": pkg.SUCCESS,
		"msg":  pkg.GetMsg(pkg.SUCCESS),
		"data": pods,
	})
}
